import $http from '@/common/api/request.js'
export default{
	login(user){
		return $http.request({
			url:'/auth/login',
			data:user,
			method:'POST'
			});
	},
	register(user){
		return $http.request({
			url:'/auth/register',
			data:user,
			method:'POST'
			});
	},
	forget(user){
		return $http.request({
			url:'/auth/forget',
			data:user,
			method:'POST'
			});
	},
	code(account){
		return $http.request({
			url:'/auth/captcha',
			data:account,
			method:'POST'
			});
	},
	info(){
		return $http.request({
			url:'/user/info',
			method:'GET'
			});
	},
	update(data){
		return $http.request({
			url:'/user/update',
			method:'POST',
			data: data
			});
	},
}